﻿using Kindohm.KSynth.Library;

namespace Kindohm.KSynth.AudioCanvas
{
    public static class CanvasMixer
    {
        static Mixer mixer;
        static Attenuator volume;

        public static Mixer Mixer
        {
            get
            {
                if (mixer == null)
                    mixer = new Mixer();
                return mixer;
            }
        }

        public static Attenuator Volume
        {
            get
            {
                if (volume == null)
                    volume = new Attenuator() { Input = Mixer };
                return volume;
            }
        }

    }
}
